Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / docs / source / templates.html (Case Conflict 1)
1 <html>\r
2 <head>\r
3   <title>The source code</title>\r
4     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
5     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
6 </head>\r
7 <body  onload="prettyPrint();">\r
8     <pre class="prettyprint lang-js">// In AIR, XTemplates must be created at load time\r
9 Templates = {\r
10         categoryCombo: new Ext.XTemplate(\r
11                 '<tpl for="."><div class="x-combo-list-item">{listName}</div></tpl>'\r
12         ),\r
13         timeField: new Ext.XTemplate(\r
14                 '<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>'\r
15         ),\r
16 \r
17         gridHeader : new Ext.Template(\r
18         '<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',\r
19         '<thead><tr class="x-grid3-hd-row">{cells}</tr></thead>',\r
20         '<tbody><tr class="new-task-row">',\r
21             '<td><div id="new-task-icon"></div></td>',\r
22             '<td><div class="x-small-editor" id="new-task-title"></div></td>',\r
23             '<td><div class="x-small-editor" id="new-task-cat"></div></td>',\r
24             '<td><div class="x-small-editor" id="new-task-due"></div></td>',\r
25         '</tr></tbody>',\r
26         "</table>"\r
27     )\r
28 };\r
29 </pre>    \r
30 </body>\r
31 </html>